package ibm.loggers.targets;

/**
 * Description: a Log Target is a destination to which to append log output, such as the console or a file<br>
 * Use this interface when creating new Log Targets.<p>
 * 
 * @author TSnow
 *
 * @version 2.2
 * Last Modified: 04/06/04
 */
public interface ILogTarget {
	
	/** 	
	* Logs an informational message <br>
	* @param sInfoMessage the text of the message to log
	*/	
	public void logInfo(String sInfoMessage);

	/** 	
	* Logs a warning message <br>
	* @param sWarningMessage the text of the warning message to log
	*/	
	public void logWarning(String sWarningMessage);
	/** 	
	* Logs an error message 
	* @param sErrorMessage the text of the error message to log
	*/	
	public void logError(String sErrorMessage);
	
	/**
	 * Determines whether two targets are equivalent.<p>
	 * This is used to prevent a logger from logging twice to the exact same output target,<br>
	 * which would result in the exact same message appearing twice in the log.
	 * 
	 * @param obj the object to compare with this object
	 * @return true if the the object passed in is the same as this object; false otherwise 
	 */
	public boolean equals(Object obj);
}
